From 29e9a7183a0eafbf495b40d3f96b1fa36ff58842 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 28 Nov 2004 06:30:15 +0000 Subject: [PATCH] Mark get_type() functions generated by glib-mkenums as const. 2004-11-28 Matthias Clasen * gdk-pixbuf.symbols: * Makefile.am: Mark get_type() functions generated by glib-mkenums as const. --- gdk-pixbuf/ChangeLog | 6 ++++++ gdk-pixbuf/Makefile.am | 2 +- gdk-pixbuf/gdk-pixbuf.symbols | 12 ++++++------ 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/gdk-pixbuf/ChangeLog b/gdk-pixbuf/ChangeLog index 31c5ab93fa..3a90e48680 100644 --- a/gdk-pixbuf/ChangeLog +++ b/gdk-pixbuf/ChangeLog @@ -1,3 +1,9 @@ +2004-11-28 Matthias Clasen + + * gdk-pixbuf.symbols: + * Makefile.am: Mark get_type() functions generated by glib-mkenums + as const. + Thu Nov 25 14:21:37 2004 Manish Singh * abicheck.sh: filter out G_GNUC stuff when doing the compare. diff --git a/gdk-pixbuf/Makefile.am b/gdk-pixbuf/Makefile.am index 21f63913fd..ee41f7063b 100644 --- a/gdk-pixbuf/Makefile.am +++ b/gdk-pixbuf/Makefile.am @@ -363,7 +363,7 @@ s-enum-types-h: @REBUILD@ $(gdk_pixbuf_headers) Makefile ( cd $(srcdir) && glib-mkenums \ --fhead "#ifndef __GDK_PIXBUF_ENUM_TYPES_H__\n#define __GDK_PIXBUF_ENUM_TYPES_H__\n\n#include \n\nG_BEGIN_DECLS\n" \ --fprod "/* enumerations from \"@filename@\" */\n" \ - --vhead "GType @enum_name@_get_type (void);\n#define GDK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \ + --vhead "GType @enum_name@_get_type (void) G_GNUC_CONST;\n#define GDK_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n" \ --ftail "G_END_DECLS\n\n#endif /* __GDK_PIXBUF_ENUM_TYPES_H__ */" \ $(gdk_pixbuf_headers) ) > tmp-gdk-pixbuf-enum-types.h \ && (cmp -s tmp-gdk-pixbuf-enum-types.h gdk-pixbuf-enum-types.h || cp tmp-gdk-pixbuf-enum-types.h gdk-pixbuf-enum-types.h ) \ diff --git a/gdk-pixbuf/gdk-pixbuf.symbols b/gdk-pixbuf/gdk-pixbuf.symbols index ca3ad33c6c..72c9e920b9 100644 --- a/gdk-pixbuf/gdk-pixbuf.symbols +++ b/gdk-pixbuf/gdk-pixbuf.symbols @@ -1,7 +1,7 @@ -gdk_colorspace_get_type -gdk_interp_type_get_type +gdk_colorspace_get_type G_GNUC_CONST +gdk_interp_type_get_type G_GNUC_CONST gdk_pixbuf_add_alpha -gdk_pixbuf_alpha_mode_get_type +gdk_pixbuf_alpha_mode_get_type G_GNUC_CONST gdk_pixbuf_animation_get_height gdk_pixbuf_animation_get_iter gdk_pixbuf_animation_get_static_image @@ -11,7 +11,7 @@ gdk_pixbuf_animation_is_static_image gdk_pixbuf_animation_iter_advance gdk_pixbuf_animation_iter_get_delay_time gdk_pixbuf_animation_iter_get_pixbuf -gdk_pixbuf_animation_iter_get_type +gdk_pixbuf_animation_iter_get_type G_GNUC_CONST gdk_pixbuf_animation_iter_on_currently_loading_frame gdk_pixbuf_animation_new_from_file gdk_pixbuf_animation_ref @@ -21,7 +21,7 @@ gdk_pixbuf_composite_color gdk_pixbuf_composite_color_simple gdk_pixbuf_copy gdk_pixbuf_copy_area -gdk_pixbuf_error_get_type +gdk_pixbuf_error_get_type gdk_pixbuf_error_quark gdk_pixbuf_fill gdk_pixbuf_flip @@ -68,7 +68,7 @@ gdk_pixbuf_new_subpixbuf gdk_pixbuf_non_anim_new gdk_pixbuf_ref gdk_pixbuf_rotate_simple -gdk_pixbuf_rotation_get_type +gdk_pixbuf_rotation_get_type G_GNUC_CONST gdk_pixbuf_saturate_and_pixelate gdk_pixbuf_save gdk_pixbuf_save_to_buffer -- 2.30.2